﻿using System.Collections.Generic;
using System.Data.SqlClient;
using LoverMeeting.DataBase.DataMappers;
using LoverMeeting.Model.Entity;
using LoverMeeting.Model.Repository;

namespace LoverMeeting.DataBase
{
    public class LoverHeightRepository : DaoRepositoryBase<LoverHeight>, ILoverHeightRepository
    {
        public LoverHeightRepository() : base(new LoverHeightMapper())
        {
        }

        public IList<LoverHeight> ReadList()
        {
            var command = new SqlCommand(@"SELECT Id as LoverHeightId, Description as LoverHeightDescription FROM LoverHeight");
            return GetList(command);
        }
    }
}
